<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
<style>
.col-left{float:left}
.col-auto{overflow:hidden;_zoom:1;_float:left;}
.title-1{border-bottom:1px solid #eee; padding-left:5px}
.f14{font-size: 14px}
.lh28{line-height: 28px}
.blue,.blue a{color:#004499}
.gray4,a.gray4{color:#999;}
.lh22{line-height: 22px}
.lh25{line-height: 25px}
.lh30{line-height: 30px}
</style>
<div class="wrap J_check_wrap">
  <?php include $this->getViewFile('/common/Nav') ?>
  <div class="h_a">查找</div>
  <form method="post" action="" id="searchForm">
    <div class="search_type cc mb10">
      <div class="mb10">
        名称：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="<?php echo $keyword?>" placeholder="请输入搜索内容...">
        <button class="btn">搜索</button>
      </div>
    </div>
  </form>
  <div class="mb10"> 共有 ( <b><?php echo $count; ?></b> ) 条记录</div>
  <form name="myform" action="" method="post" class="J_ajaxForm">
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td width="50"><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x">全选</td>
            <td>标签</td>
            <td width="50" align="center">信息总数</td>
            
          </tr>
        </thead>
        <tbody>
          <?php
		  foreach($data as $rs){
		  ?>
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="<?php echo $rs->tagid;?>" id="att_<?php echo $rs->tagid;?>"><?php echo $rs->tagid;?></td>
            <td><a href="javascript:;;" onClick="taglist(this)" data-tag="<?php echo $rs->tag;?>"><?php echo $rs->tag;?></a></td>
            <td align="center"><?php echo $rs->usetimes;?></td>
            <?php
			$op = array();
			if(RBAC::authenticate('delete')){
				$op[] = '<a class="J_ajax_del" href="'.AdminBase::U("delete",array('tagid'=>$rs->tagid)).'" >删除</a>';
			}
			//echo implode(' | ',$op);
			?>
          </tr>
          <?php
		  }
		  ?>
        </tbody>
      </table>
      <div class="p10">
        <div class="pages"><?php echo $Page;?></div>
      </div>
    </div>
  </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
<script>
//tag
function taglist(obj){
	var tag = $(obj).data('tag');
	Wind.use("artDialog", "iframeTools", function () {
		art.dialog.open('<?php echo $staticUrl; ?>admin/public/tags.html?tag='+tag, {
            title: '信息列表',
            id: 'taglist',
            lock: true,
            fixed: true,
			width:700,
			height:560,
            background: "#CCCCCC",
            opacity: 0
        });
	});
}
</script>
</body>
</html>